package com.example.springboot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.springboot.entity.Orders;
import org.apache.ibatis.annotations.Select;

/**
 * 操作orders相关数据接口
*/
public interface OrdersMapper extends BaseMapper<Orders> {

    @Select("select * from orders where order_no = #{orderNo}")
    Orders selectByOrderNo(String orderNo);
}